import tensorflow as tf

tf.compat.v1.disable_eager_execution()
hello = tf.constant("hello world")

with tf.compat.v1.Session() as sess:

    print(sess.run(hello))